<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
  pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<title>问题保单</title>
<c:import url="/ctrl/header"></c:import>
</head>
<body>
  <c:import url="/ctrl/top"></c:import>
  <div class="container">
    <div class="row-fluid">
      <c:import url="/ctrl/menu">
        <c:param name="pageId">
          <c:out value="${pageId}" />
        </c:param>
      </c:import>
      <!--/span-->
      <div class="span10">
        <h3 class="greybg">问题保单</h3>
        <table
          class="table table-bordered table-striped responsive-utilities table-hover">
          <thead>
            <tr>
              <th>保单号</th>
              <th>保险名称</th>
              <th>被保人姓名</th>
              <th>证件号码</th>
              <th>保单金额</th>
              <th>保险起期</th>
              <th>保单状态</th>
              <th>操作</th>
            </tr>
          </thead>
          <tbody>
            <c:choose>
              <c:when test="${pager.rowCount>0}">
                <c:forEach var="policies" items="${policyList}">
                  <tr>
                    <td><c:out value="${policies.policyNo}" /></td>
                    <td><c:out value="${policies.orderProductName}" /></td>
                    <td><c:out
                        value="${policies.policyInsuredName}" /></td>
                    <td><c:out
                        value="${policies.policyInsuredCredentialNo}" /></td>
                    <td><fmt:formatNumber var="policyRealAmount"
                        type="currency" pattern="￥.00"
                        value="${policies.policyRealAmount}" /> <c:out
                        value="${policyRealAmount}" /></td>
                    <td><fmt:formatDate var="policyBegin"
                        pattern="yyyy-MM-dd"
                        value="${policies.policyBegin}" /> <c:out
                        value="${policyBegin}" /></td>
                    <td><c:choose>
                        <c:when
                          test="${policies.statusDesc==policies.feeStatusDesc}">
                          <c:out value="${policies.statusDesc}" />
                        </c:when>
                        <c:otherwise>
                          <c:out value="${policies.statusDesc}" />,<c:out
                            value="${policies.feeStatusDesc}" />
                        </c:otherwise>
                      </c:choose></td>
                    <td>
                      <div class="wrap_layout_track">
                        <a class="js_policy_problem"
                          href="javascript:void(0);"
                          order_id="<c:out value="${policies.orderId}" />"
                          policy_id="<c:out value="${policies.policyId}" />">
                          查看问题描述<b class="arrow_piont"></b>
                        </a>
                        <div class="layout_popup">
                          <div class="layout_inner order_box">
                            <div class="layout_hd">
                              <h4>
                                问题描述<b class="arrow_piont"></b>
                              </h4>
                            </div>
                            <div class="layout_bd"></div>
                          </div>
                          <div class="layout_arrow_top">
                            <span class="">◆</span><i>◆</i>
                          </div>
                        </div>
                      </div>
                    </td>
                  </tr>
                </c:forEach>
              </c:when>
              <c:otherwise>
                <tr>
                  <td colspan="6" style="text-align: center;">没有相关信息</td>
                </tr>
              </c:otherwise>
            </c:choose>

          </tbody>
        </table>

        <c:import url="/ctrl/pager">
          <c:param name="index" value="${pager.index}" />
          <c:param name="rowcount" value="${pager.rowCount}" />
          <c:param name="params" value="${pager.params}" />
          <c:param name="pagesize" value="${pager.pageSize}" />
          <c:param name="pagename" value="/policy/problem" />
        </c:import>

      </div>
    </div>
    <hr />
    <c:import url="/ctrl/bottom"></c:import>
  </div>

  <c:import url="/ctrl/footer"></c:import>
  <script>
			H.app.center.order.orderinit();
		</script>
</body>
</html>